package main

import "fmt"

func Add(a, b int) int {
	return a + b
}
func Minus(a, b int) int {
	return a - b
}

type FuncType func(int, int) int

func main() {
	var result int
	var fTest FuncType
	fTest = Add
	result = fTest(30, 504)
	fmt.Println("result=", result)
	fTest = Minus
	result = fTest(20, 80)
	fmt.Println("result=", result)
}
